package com.cxy.datawarehouse;

import cn.hutool.extra.spring.SpringUtil;
import org.springframework.boot.autoconfigure.web.ServerProperties;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
@Slf4j
public class DataWarehouseApplication {

    public static void main(String[] args) {
        SpringApplication.run(DataWarehouseApplication.class, args);
        ServerProperties serverProperties = SpringUtil.getBean(ServerProperties.class);
        log.info("文档:http://127.0.0.1:{}{}/doc.html", serverProperties.getPort(), serverProperties.getServlet().getContextPath());
    }

}
